#ifndef _CONTROL
#define _CONTROL
 
#include <QApplication>
#include <QWidget>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QRadioButton>
#include <QImage>

#include <iostream>
#include <string>

using namespace std;
 
class Control : public QWidget
{
	Q_OBJECT
	
    public:
    Control();
	void set_img(QPushButton*, QString);

	public slots:
	void handler_forward();
	void handler_backward();
	void handler_left();
	void handler_right();

	void handler_up();
	void handler_down();

	void handler_rotate_left();
	void handler_rotate_right();
 
    private:
	QPushButton *forward;
	QPushButton *backward;
	QPushButton *left;
	QPushButton *right;

	QPushButton *up;
	QPushButton *down;

	QPushButton *rotate_left;
	QPushButton *rotate_right;
};
 
#endif
